provider Teams PUT /api/0/organizations/{organization_id_or_slug}/members/{member_id}/teams/{team_id_or_slug}/
@utdk/sentry /api/0/organizations/{organization_id_or_slug}/members/{member_id}/teams/{team_id_or_slug}/
Update an Organization Member's Team Role
The relevant organization member must already be a part of the team. Note that for organization admins, managers, and owners, they are automatically granted a minimum team role of `admin` on all teams they are part of. Read more about [team roles](https://docs.sentry.io/product/teams/roles/).
organization_id_or_slug path required
The ID or slug of the organization the resource belongs to.
string
member_id path required
The ID of the organization member to change
string
team_id_or_slug path required
The ID or slug of the team the resource belongs to.
string

Try it

Authentication
Configure credentials for API Reference
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

updateAnOrganizationMemberSTeamRole
PUT/api/0/organizations/{organization_id_or_slug}/members/{member_id}/teams/{team_id_or_slug}/
The relevant organization member must already be a part of the team. Note that for organization admins, managers, and owners, they are automatically granted a minimum team role of `admin` on all teams they are part of. Read more about [team roles](https://docs.sentry.io/product/teams/roles/).

Parameters

required

The ID or slug of the organization the resource belongs to.

required

The ID of the organization member to change

required

The ID or slug of the team the resource belongs to.

Input

The team-level role to switch to. Valid roles include: * `contributor` - Contributors can view and act on events, as well as view most other data within the team's projects. * `admin` - Admin privileges on the team. They can create and remove projects, and can manage the team's memberships.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import sentry from '@utdk/sentry';

await sentry.updateAnOrganizationMemberSTeamRole({
  "teamRole": "contributor"
})